#include "ConfigHelper.h"
#include<iostream>
#include<stdlib.h>

using namespace std;

#define FILE_PATH ("config.cfg")



int main()
{
    ConfigHelper conf = ConfigHelper(FILE_PATH);
    conf.ReadConfig();
    conf.PrintConfig();

    int status=0;
    string value = "";
    float value_float=0.0;

    status = conf.FindFromKey("firstpoint_x",value);
    if(status!=0)
    {
        cout<<"Not Found(status:"<<status<<")"<<endl;
    }
    else
    {
        value_float = atof(&(value[0]));
    }
    cout<<"value in float: "<<value_float<<endl;
    cout<<"value + 0.01="<<value_float+0.01<<endl;

    return 0;

}